#include <gtk/gtk.h>
#include <libnemo-private/nemo-file.h>

#include <libnemo-private/nemo-desktop-directory-file.h>

int 
main (int argc, char* argv[])
{
    NemoFile *file, *parent;

    gtk_init (&argc, &argv);

    file = nemo_file_get_by_uri ("file:///usr/share/icons");

    g_print ("file display name:%s\n", nemo_file_get_display_name (file));
    g_print ("file edit name:%s\n", nemo_file_get_edit_name (file));
    g_print ("file name:%s\n", nemo_file_get_name (file));
    g_print ("file peek name:%s\n", nemo_file_peek_name (file));
    g_print ("file uri:%s\n", nemo_file_get_uri (file));
    g_print ("file path:%s\n", nemo_file_get_path (file));
    g_print ("file uri scheme:%s\n", nemo_file_get_uri_scheme (file));
    g_print ("file mime type:%s\n", nemo_file_get_mime_type (file));
    g_print ("activation uri:%s\n", nemo_file_get_activation_uri (file));

    g_print ("parent uri:%s\n", nemo_file_get_parent_uri (file));
    g_print ("display parent uri:%s\n", nemo_file_get_parent_uri_for_display (file));

    parent = nemo_file_get_parent (file);
    g_print ("parent display name:%s\n", nemo_file_get_display_name (parent));
    g_print ("parent uri:%s\n", nemo_file_get_uri (parent));

    g_print ("desktop directory type name:%s\n",  g_type_name (nemo_desktop_directory_file_get_type ()));

    nemo_file_unref (parent);
    nemo_file_unref (file);

    return 0;
}
